ae9cea4ea1785eee8cb9bdc8dac7f0ef527a7a75,src/jwiki/core/CAction.java,CAction,unstash,#Wiki#String#String#String#String#,246

Before Change


	private static boolean unstash(Wiki wiki, String filekey, String title, String text, String reason)
	{
		ColorLog.info(wiki, String.format("Unstashing '%s' from temporary archive @ '%s'", title, filekey));
		URLBuilder ub = wiki.makeUB("upload");

		String[] es = FString.massEnc(title, text, reason, wiki.token, filekey);
		String posttext = URLBuilder.chainParams("filename", es[0], "text", es[1], "comment", es[2], "ignorewarnings", "true",
				"filekey", es[4], "token", es[3]);
		try
		{
			return CRequest.post(ub.makeURL(), posttext, wiki.cookiejar, CRequest.urlenc).resultIs("Success");
		}
		catch (IOException e)
		{

After Change


	 * @param reason The edit summary.
	 * @return True if we were successful.
	 */
	private static boolean unstash(Wiki wiki, String filekey, String title, String text, String reason)
	{
		ColorLog.info(wiki, String.format("Unstashing '%s' from temporary archive @ '%s'", title, filekey));
		Reply r = doAction(wiki, wiki.makeUB("upload"), "filename", title, "text", text, "comment", reason, "token",
				wiki.token, "filekey", filekey, "ignorewarnings", "true");
		return r != null && r.resultIs("Success");
	}
}